package main

import (
	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	r.Static("/staticbert", "./static")
	r.LoadHTMLGlob("templates/*")
	r.GET("/", func(c *gin.Context) {
		c.HTML(200, "index.tmpl", gin.H{
			"title": "Main site",
		})
	})

	BuildCommandMapping(r)
	BuildDirectionSystemMapping(r)
	BuildFileSystemMapping(r)
	r.Run(":8050")
}
